while sleep 60
  do
    ps 25645
    if [ $? = 0 ]
    then
      echo vivant
    else
      echo mort; sudo halt
    fi
done
